﻿<%@ Page Language="C#" MasterPageFile="~/Paginas/Paginas Master/PaginaMaestra.Master" AutoEventWireup="true" CodeBehind="NuevoPerfil.aspx.cs" Inherits="bi4homev3.Paginas.NuevoPerfil" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style10
        {
            width: 63%;
            height: 202px;
        }
        .style12
        {
            width: 266px;
        }
        .style13
        {
            width: 100px;
        }
    .style14
    {
        width: 100px;
        height: 45px;
            font-family: Arial, Helvetica, sans-serif;
        }
    .style15
    {
        width: 266px;
        height: 45px;
    }
        .style16
        {
            width: 100px;
            font-family: Arial, Helvetica, sans-serif;
        }
    </style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="formulario" runat="server">
    <table class="style10">
        <tr>
            <td class="style16">
                Username:</td>
            <td class="style12">
                <asp:TextBox ID="usrname" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator id="CheckUsrname" runat="server"
                 ControlToValidate="usrname"
                 ErrorMessage="Campo Requerido"
                 Display="Dynamic"
                 ForeColor="Red">
                </asp:RequiredFieldValidator>
                <asp:CustomValidator id="nickexiste"
                 ControlToValidate="usrname"
                 Display="Dynamic"
                 ErrorMessage="ocupado elige otro"
                 ForeColor="Red"
                 OnServerValidate="validanick"
                 runat="server">
                 </asp:CustomValidator>


            </td>
        </tr>
        <tr>
            <td class="style16">
                Clave:</td>
            <td class="style12">
                <asp:TextBox ID="passwd" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator id="Checkpasswd1" runat="server"
                 ControlToValidate="passwd"
                 ErrorMessage="Campo Requerido"
                 Display="Dynamic"
                 ForeColor="Red">
                </asp:RequiredFieldValidator>
                
            </td>
        </tr>
        <tr>
            <td class="style16">
                Confirmar Clave:</td>
            <td class="style12">
                <asp:TextBox ID="passwrd2" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator id="Checkpasswd2" runat="server"
                 ControlToValidate="passwrd2"
                 ErrorMessage="Campo Requerido"
                 ForeColor="Red">
                </asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="passwd" ControlToValidate="passwrd2" Display="Dynamic" 
                    ErrorMessage="Diferente Clave"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td class="style16">
                Nombre:</td>
            <td class="style12">
                <asp:TextBox ID="nombre" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator id="Checknombre" runat="server"
                 ControlToValidate="nombre"
                 ErrorMessage="Campo Requerido"
                 Display="Dynamic"
                 ForeColor="Red">
                </asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style16">
                Apellido:</td>
            <td class="style12">
                <asp:TextBox ID="apellido" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator id="Checkapellido" runat="server"
                 ControlToValidate="apellido"
                 ErrorMessage="Campo Requerido"
                 ForeColor="Red">
                </asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style16">
                Correo Electronico:</td>
            <td class="style12">
                <asp:TextBox ID="correo" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator id="Checkcorreo" runat="server"
                 ControlToValidate="correo"
                 ErrorMessage="Campo Requerido"
                 ForeColor="Red">
                </asp:RequiredFieldValidator>
                

                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="correo" Display="Dynamic" ErrorMessage="Correo Invalido" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                

            </td>
        </tr>
        <tr>
            <td class="style16">
                Carga Familiar:</td>
            <td class="style12">
                <asp:TextBox ID="carga" runat="server" Width="56px"></asp:TextBox>
                <asp:RangeValidator
                    ID="Checkcarga"
                    ControlToValidate="carga"
                    Type="Integer"
                    MinimumValue="1"
                    MaximumValue="30000"
                    ErrorMessage="Solo numeros en este campo."
                    Display="Dynamic"
                    runat="server">
                </asp:RangeValidator>    

            </td>
        </tr>
        <tr>
            <td class="style14">
                Ingreso Mensual:</td>
            <td class="style15">
                <asp:TextBox ID="ingreso" runat="server"></asp:TextBox>
                <asp:RangeValidator
                    ID="Checkingreso"
                    ControlToValidate="ingreso"
                    Type="Double"
                    ErrorMessage="Solo numeros en este campo. <br /> Separe decimales con coma ','"
                    Display="Dynamic"
                    runat="server">
                </asp:RangeValidator>
            </td>
        </tr>
        <tr>
            <td class="style13">
                &nbsp;</td>
            <td align="right" class="style12">
                <asp:Button ID="sendperfil" runat="server" onclick="sendperfil_Click" 
                    Text="Registrarse" />
            </td>
        </tr>
    </table>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Submenu" runat="server">
    <asp:Image runat="server" ImageUrl="~/Paginas/Paginas Master/Imagenes/Registro.jpg"
    />
   
</asp:Content>

